package com.github.fujianlian.klinechart.entity;

/**
 * 计数类型
 * 价格 百分比
 */
public enum OperateType {

    unnow(0), sale(1), buy(2), entrust(2);
    int type;

    OperateType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public  static OperateType type(int type) {
        switch (type) {
            case 1:
                return sale;
            case 2:
                return buy;
            default:
                return unnow;
        }
    }
}
